﻿@model Inscriptionem.Models.Blog.Views.Controls.PostNavidationViewModel

<div class="navigation clearfix">
	@if (Model.Previous != null)
    {
    <text>
        <div class="alignleft">« <a href="/@Model.Language/@Model.Section/Post/@Model.Previous.ID" rel="prev">@Model.Previous.Title</a></div>
    </text>
    }
    
    @if (Model.Next != null)
    {
    <text>
	    <div class="alignright"><a href="/@Model.Language/@Model.Section/Post/@Model.Next.ID" rel="next">@Model.Next.Title</a> »</div>
    </text>
    }
</div>

@if (Model.Set.Any())
{
<text>
<h3 id="related">Related</h3>

<div class="navigation clearfix">
    <ul>
        @foreach (var post in Model.Set)
        {
        <text>
        <li>
            <a href="/@Model.Language/@Model.Section/Post/@post.ID">@post.Title</a>
        </li>
        </text>
        }
    </ul>
</div>
</text>
}